package com.example.justbuy.service.Impl;

import com.example.justbuy.mapper.HomeDao;
import com.example.justbuy.pojo.Evaluate;
import com.example.justbuy.pojo.Goods;
import com.example.justbuy.pojo.Image;
import com.example.justbuy.pojo.Store;
import com.example.justbuy.service.HomeDaoService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.HashMap;
import java.util.List;

@Service
public class HomeDaoServiceImpl implements HomeDaoService {
    @Autowired
    private HomeDao homeDao;

    @Override
    public List<Image> getAllIsPlayImage() {
        return homeDao.getAllIsPlayImage();
    }

    @Override
    public List<Image> getAllRecommendGoodsAndImages() {
        return homeDao.getAllRecommendGoodsAndImages();
    }

    @Override
    public List<Goods> getAllTopGoods() {
        return homeDao.getAllTopGoods();
    }

    @Override
    public List<Goods> getAllRecommendAndGoodsTypeGoods() {
        return homeDao.getAllRecommendAndGoodsTypeGoods();
    }

    @Override
    public Goods getGoodsBygoodsId(int goodsId) {
        return homeDao.getGoodsBygoodsId(goodsId);
    }

    @Override
    public List<Image> getImagesBygoodsId(int goodsId) {
        return homeDao.getImagesBygoodsId(goodsId);
    }

    @Override
    public List<Evaluate> getAllEvaluateByGoodsId(int goodsId) {
        return homeDao.getAllEvaluateByGoodsId(goodsId);
    }

    @Override
    public List<Image> getAllImagesByGoodsIdAndDes(int goodsId) {
        return homeDao.getAllImagesByGoodsIdAndDes(goodsId);
    }

    @Override
    public Store getStoreByGoodsId(int goodsId) {
        return homeDao.getStoreByGoodsId(goodsId);
    }

    @Override
    public Integer getShoppingCartByUserid(int userid) {
        return homeDao.getShoppingCartByUserid(userid);
    }

    @Override
    public List<Goods> getAllGoodsNameByLike(String content) {
        return homeDao.getAllGoodsNameByLike(content);
    }

    @Override
    public List<Goods> getAllGoodsAndEvaluateByGoodsName(String goodsName) {
        return homeDao.getAllGoodsAndEvaluateByGoodsName(goodsName);
    }

    @Override
    public List<Goods> getAllGoodsAndEvaluateByGoodsNameAndXL(String goodsName) {
        return homeDao.getAllGoodsAndEvaluateByGoodsNameAndXL(goodsName);
    }

    @Override
    public List<Goods> getAllGoodsAndEvaluateByGoodsNameAndJG(HashMap map) {
        return homeDao.getAllGoodsAndEvaluateByGoodsNameAndJG(map);
    }

    @Override
    public List<Goods> getAllGoodsAndEvaluateJS() {
        return homeDao.getAllGoodsAndEvaluateJS();
    }

    @Override
    public List<Goods> getAllGoodsAndEvaluateJSAndJG(HashMap map) {
        return homeDao.getAllGoodsAndEvaluateJSAndJG(map);
    }

    @Override
    public List<Goods> getAllGoodsAndEvaluateJSAndXL() {
        return homeDao.getAllGoodsAndEvaluateJSAndXL();
    }
}
